.class Lcom/baidu/x;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/baidu/s;


# instance fields
.field final synthetic a:Lcom/baidu/AdView;


# direct methods
.method constructor <init>(Lcom/baidu/AdView;)V
    .locals 0

    iput-object p1, p0, Lcom/baidu/x;->a:Lcom/baidu/AdView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a()V
    .locals 1

    const-string v0, "adRequestStart"

    invoke-static {v0}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    return-void
.end method

.method public a(Ljava/lang/Exception;Lcom/baidu/FailReason;)V
    .locals 1

    const-string v0, "adRequestException"

    invoke-static {v0}, Lcom/baidu/bk;->b(Ljava/lang/String;)I

    iget-object v0, p0, Lcom/baidu/x;->a:Lcom/baidu/AdView;

    invoke-static {v0}, Lcom/baidu/AdView;->a(Lcom/baidu/AdView;)Lcom/baidu/AdViewListener;

    move-result-object v0

    invoke-interface {v0, p2}, Lcom/baidu/AdViewListener;->onReceiveFail(Lcom/baidu/FailReason;)V

    return-void
.end method

.method public a(Z)V
    .locals 3

    const-string v0, "adRequestSuccess refreshNow"

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Z)Ljava/lang/StringBuilder;

    move-result-object v1

    const-string v2, ""

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-static {v0, v1}, Lcom/baidu/bk;->b(Ljava/lang/String;Ljava/lang/String;)I

    if-eqz p1, :cond_0

    iget-object v0, p0, Lcom/baidu/x;->a:Lcom/baidu/AdView;

    invoke-static {v0}, Lcom/baidu/AdView;->b(Lcom/baidu/AdView;)V

    :cond_0
    iget-object v0, p0, Lcom/baidu/x;->a:Lcom/baidu/AdView;

    invoke-static {v0}, Lcom/baidu/AdView;->a(Lcom/baidu/AdView;)Lcom/baidu/AdViewListener;

    move-result-object v0

    invoke-interface {v0}, Lcom/baidu/AdViewListener;->onReceiveSuccess()V

    return-void
.end method
